package com.yellowpage.wf.data;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * WorkflowPath entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "WF_WORKFLOW_PATH")
public class WorkflowPath implements java.io.Serializable {

	// Fields

	private Long workflowPathId;
	private Long workflowId;
	private String name;
	private String displayName;
	private Long nodeFrom;
	private Long nodeTo;
	private String workflowPathStatus;
	private Long createUser;
	private Date createTime;
	private Long lastUpdateUser;
	private Date lastUpdateTime;

	// Constructors

	/** default constructor */
	public WorkflowPath() {
	}

	/** full constructor */
	public WorkflowPath(Long workflowId, String name, String displayName,
			Long nodeFrom, Long nodeTo, String workflowPathStatus,
			Long createUser, Date createTime, Long lastUpdateUser,
			Date lastUpdateTime) {
		this.workflowId = workflowId;
		this.name = name;
		this.displayName = displayName;
		this.nodeFrom = nodeFrom;
		this.nodeTo = nodeTo;
		this.workflowPathStatus = workflowPathStatus;
		this.createUser = createUser;
		this.createTime = createTime;
		this.lastUpdateUser = lastUpdateUser;
		this.lastUpdateTime = lastUpdateTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "WORKFLOW_PATH_ID", unique = true, nullable = false, precision = 18, scale = 0)
	public Long getWorkflowPathId() {
		return this.workflowPathId;
	}

	public void setWorkflowPathId(Long workflowPathId) {
		this.workflowPathId = workflowPathId;
	}

	@Column(name = "WORKFLOW_ID", precision = 18, scale = 0)
	public Long getWorkflowId() {
		return this.workflowId;
	}

	public void setWorkflowId(Long workflowId) {
		this.workflowId = workflowId;
	}

	@Column(name = "NAME", length = 128)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "DISPLAY_NAME", length = 128)
	public String getDisplayName() {
		return this.displayName;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	@Column(name = "NODE_FROM", precision = 18, scale = 0)
	public Long getNodeFrom() {
		return this.nodeFrom;
	}

	public void setNodeFrom(Long nodeFrom) {
		this.nodeFrom = nodeFrom;
	}

	@Column(name = "NODE_TO", precision = 18, scale = 0)
	public Long getNodeTo() {
		return this.nodeTo;
	}

	public void setNodeTo(Long nodeTo) {
		this.nodeTo = nodeTo;
	}

	@Column(name = "WORKFLOW_PATH_STATUS", length = 16)
	public String getWorkflowPathStatus() {
		return this.workflowPathStatus;
	}

	public void setWorkflowPathStatus(String workflowPathStatus) {
		this.workflowPathStatus = workflowPathStatus;
	}

	@Column(name = "CREATE_USER", precision = 18, scale = 0)
	public Long getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(Long createUser) {
		this.createUser = createUser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CREATE_TIME", length = 7)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "LAST_UPDATE_USER", precision = 18, scale = 0)
	public Long getLastUpdateUser() {
		return this.lastUpdateUser;
	}

	public void setLastUpdateUser(Long lastUpdateUser) {
		this.lastUpdateUser = lastUpdateUser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "LAST_UPDATE_TIME", length = 7)
	public Date getLastUpdateTime() {
		return this.lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

}